import {
    SHOPDIC
} from '@/const/shopDic'
export const formOption = {
    mock: true,
    dicData: SHOPDIC,
    submitText: '完成',
    card:true,
    gutter:30,
    group:[
        {
            icon:'el-icon-info',
            label: '分组1',
            column: [
                {
                    label: "所属规格",
                    prop: "parentId",
                    tip: '所属规格分类',
                    span: 10,
                },
                {
                    label: "所属分类",
                    prop: "classId",
                    type: "input",
                    span: 12,
                    tip: '请选择商品分类，可多选',
                }
            ]
        },{
            icon:'el-icon-info',
            label: '分组2',
            prop: 'group',
            column: [
                {
                    label: "统称",
                    prop: "featureName",
                    tip: '请输入统称',
                    span: 10,
                    maxlength: 8,
                    prefixIcon: 'el-icon-tickets',
                    minlength: 2,
                    rules: [{
                        required: true,
                        message: "请输入统称",
                        trigger: "blur"
                    }],
                },
                {
                    label: "类型",
                    prop: "type",
                    span: 10,
                    type: "radio",
                    dicData: SHOPDIC.STORETYPE,
                },

            ]
        }
        ]
};
export const  storeFeatureTrueFromOption ={
    mock: false,
    dicData: SHOPDIC,
    submitText: '完成',
    card:true,
    gutter:30,
    group:[
        {
            icon:'el-icon-info',
            label: '分组1',
            column: [
                {
                    label: "所属规格",
                    prop: "parentId",
                    tip: '所属规格分类',
                    span: 10,
                    formslot:true
                },
                {
                    label: "所属分类",
                    prop: "classId",
                    type: "input",
                    span: 12,
                    tip: '请选择商品分类，可多选',
                }
            ]
        },{
            icon:'el-icon-info',
            label: '分组2',
            prop: 'group',
            column: [
                {
                    label: "统称",
                    prop: "featureName",
                    tip: '请输入统称',
                    span: 10,
                    maxlength: 8,
                    prefixIcon: 'el-icon-tickets',
                    minlength: 2,
                    rules: [{
                        required: true,
                        message: "请输入统称",
                        trigger: "blur"
                    }],
                },
                {
                    label: "类型",
                    prop: "type",
                    span: 10,
                    type: "radio",
                    dicData: SHOPDIC.STORETYPE,
                },

            ]
        }
    ]
};
